<!DOCTYPE html><html class="theme-next muse use-motion" lang="zh-CN"><head><meta name="generator" content="Hexo 3.8.0"><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=2"><meta name="theme-color" content="#222"><script src="//cdn.jsdelivr.net/npm/pace-js@1.0.2/pace.min.js"></script><link href="/lib/pace/pace-theme-corner-indicator.min.css?v=1.0.2" rel="stylesheet"><meta name="google-site-verification" content="sDeZZSmv4NPbU3sXi1IL5l8PiZt1wVqR5EKUsxOjruY"><link href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.2.5/dist/jquery.fancybox.min.css" rel="stylesheet" type="text/css"><link href="https://fonts.googleapis.cnpmjs.org/css?family=Noto Serif SC:300,300italic,400,400italic,700,700italic|Noto Serif SC:300,300italic,400,400italic,700,700italic|Roboto Mono:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css"><link href="//cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"><link href="/css/main.css?v=6.6.0" rel="stylesheet" type="text/css"><link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=6.6.0"><link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=6.6.0"><link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=6.6.0"><link rel="mask-icon" href="/images/logo.svg?v=6.6.0" color="#222"><script id="hexo.configurations">var NexT=window.NexT||{},CONFIG={root:"/",scheme:"Muse",version:"6.6.0",sidebar:{position:"left",display:"hide",offset:12,b2t:!1,scrollpercent:!0,onmobile:!0},fancybox:!0,fastclick:!1,lazyload:!1,tabs:!0,motion:{enable:!0,async:!1,transition:{post_block:"fadeIn",post_header:"slideDownIn",post_body:"slideDownIn",coll_header:"slideLeftIn",sidebar:"slideUpIn"}},algolia:{applicationID:"",apiKey:"",indexName:"",hits:{per_page:10},labels:{input_placeholder:"Search for Posts",hits_empty:"We didn't find any results for the search: ${query}",hits_stats:"${hits} results found in ${time} ms"}}}</script><meta name="description" content="安装提示安装macOS 应用程序副本已损坏，不能用来安装macOS的解决方法该错误会经常出现于旧版中，根源是苹果的安装镜像中的证书过期导致的。解决方法如下：实用工具-终端，输入命令：date 0201010116，回车后关闭终端，可继续安装进程；安装过程中全程断开网络另一种方法：BIOS中修正系统时间，误差不要多于5秒，应该能解决该提示信息【黑果小兵亲测有效】 去掉Lilu的输出信息,还原10."><meta name="keywords" content="安装,常见问题,10.13,High Sierra,EDID,屏蔽独显,花屏,黑屏"><meta property="og:type" content="article"><meta property="og:title" content="macOS 10.13安装中常见的问题及解决方法"><meta property="og:url" content="https://blog.daliansky.net/macOS-10.13-installation-of-common-problems-and-solutions.html"><meta property="og:site_name" content="黑果小兵的部落阁"><meta property="og:description" content="安装提示安装macOS 应用程序副本已损坏，不能用来安装macOS的解决方法该错误会经常出现于旧版中，根源是苹果的安装镜像中的证书过期导致的。解决方法如下：实用工具-终端，输入命令：date 0201010116，回车后关闭终端，可继续安装进程；安装过程中全程断开网络另一种方法：BIOS中修正系统时间，误差不要多于5秒，应该能解决该提示信息【黑果小兵亲测有效】 去掉Lilu的输出信息,还原10."><meta property="og:locale" content="zh-CN"><meta property="og:image" content="https://pics.daliansky.net/d/xD0Ar91B/blog/1-main.png?download=1"><meta property="og:image" content="https://pics.daliansky.net/d/xD0Ar91B/blog/Blockinjectedkexts.png?download=1"><meta property="og:image" content="https://pics.daliansky.net/d/xD0Ar91B/blog/BIKSelect.png?download=1"><meta property="og:image" content="https://pics.daliansky.net/d/xD0Ar91B/blog/BIKChoose.png?download=1"><meta property="og:image" content="https://pics.daliansky.net/d/xD0Ar91B/blog/EDID%E6%B3%A8%E5%85%A5.png?download=1"><meta property="og:image" content="https://pics.daliansky.net/d/xD0Ar91B/blog/10.13.4/About.png?download=1"><meta property="og:updated_time" content="2021-12-06T01:25:19.407Z"><meta name="twitter:card" content="summary"><meta name="twitter:title" content="macOS 10.13安装中常见的问题及解决方法"><meta name="twitter:description" content="安装提示安装macOS 应用程序副本已损坏，不能用来安装macOS的解决方法该错误会经常出现于旧版中，根源是苹果的安装镜像中的证书过期导致的。解决方法如下：实用工具-终端，输入命令：date 0201010116，回车后关闭终端，可继续安装进程；安装过程中全程断开网络另一种方法：BIOS中修正系统时间，误差不要多于5秒，应该能解决该提示信息【黑果小兵亲测有效】 去掉Lilu的输出信息,还原10."><meta name="twitter:image" content="https://pics.daliansky.net/d/xD0Ar91B/blog/1-main.png?download=1"><link rel="alternate" href="/atom.xml" title="黑果小兵的部落阁" type="application/atom+xml"><link rel="canonical" href="https://blog.daliansky.net/macOS-10.13-installation-of-common-problems-and-solutions.html"><script id="page.configurations">CONFIG.page={sidebar:""}</script><title>macOS 10.13安装中常见的问题及解决方法 | 黑果小兵的部落阁</title><script async src="https://www.googletagmanager.com/gtag/js?id=UA-18130737-1"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","UA-18130737-1")</script><noscript><style>.sidebar-inner,.use-motion .brand,.use-motion .collection-title,.use-motion .comments,.use-motion .menu-item,.use-motion .motion-element,.use-motion .pagination,.use-motion .post-block,.use-motion .post-body,.use-motion .post-header{opacity:initial}.use-motion .logo,.use-motion .site-subtitle,.use-motion .site-title{opacity:initial;top:initial}.use-motion .logo-line-before i{left:initial}.use-motion .logo-line-after i{right:initial}</style></noscript></head><body itemscope itemtype="http://schema.org/WebPage" lang="zh-CN"><div class="container sidebar-position-left page-post-detail"><div class="headband"></div><header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader"><div class="header-inner"><div class="site-brand-wrapper"><div class="site-meta"><div class="custom-logo-site-title"><a href="/" class="brand" rel="start"><span class="logo-line-before"><i></i></span> <span class="site-title">黑果小兵的部落阁</span> <span class="logo-line-after"><i></i></span></a></div><p class="site-subtitle">Hackintosh安装镜像、教程及经验分享</p></div><div class="site-nav-toggle"><button aria-label="切换导航栏"><span class="btn-bar"></span> <span class="btn-bar"></span> <span class="btn-bar"></span></button></div></div><nav class="site-nav"><ul id="menu" class="menu"><li class="menu-item menu-item-home"><a href="/" rel="section"><i class="menu-item-icon fa fa-fw fa-home"></i><br>首页</a></li><li class="menu-item menu-item-archives"><a href="/archives/" rel="section"><i class="menu-item-icon fa fa-fw fa-archive"></i><br>归档</a></li><li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="menu-item-icon fa fa-fw fa-th"></i><br>分类</a></li><li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="menu-item-icon fa fa-fw fa-tags"></i><br>标签</a></li><li class="menu-item menu-item-about"><a href="/about/" rel="section"><i class="menu-item-icon fa fa-fw fa-user"></i><br>关于</a></li><li class="menu-item menu-item-search"><a href="javascript:;" class="popup-trigger"><i class="menu-item-icon fa fa-search fa-fw"></i><br>搜索</a></li></ul><div class="site-search"><div class="popup search-popup local-search-popup"><div class="local-search-header clearfix"><span class="search-icon"><i class="fa fa-search"></i> </span><span class="popup-btn-close"><i class="fa fa-times-circle"></i></span><div class="local-search-input-wrapper"><input autocomplete="off" placeholder="搜索..." spellcheck="false" type="text" id="local-search-input"></div></div><div id="local-search-result"></div></div></div></nav></div></header><a href="https://github.com/daliansky" class="github-corner" title="Follow me on GitHub" aria-label="Follow me on GitHub" rel="noopener" target="_blank"><svg width="80" height="80" viewbox="0 0 250 250" style="fill:#222;color:#fff;position:absolute;top:0;border:0;right:0" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"/><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin:130px 106px" class="octo-arm"/><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"/></svg></a><main id="main" class="main"><div class="main-inner"><div class="content-wrap"><div id="content" class="content"><div id="posts" class="posts-expand"><div class="reading-progress-bar"></div><article class="post post-type-normal" itemscope itemtype="http://schema.org/Article"><div class="post-block"><link itemprop="mainEntityOfPage" href="https://blog.daliansky.net/macOS-10.13-installation-of-common-problems-and-solutions.html"><span hidden itemprop="author" itemscope itemtype="http://schema.org/Person"><meta itemprop="name" content="黑果小兵"><meta itemprop="description" content="黑果小兵,daliansky,blog.daliansky.net,macOS,Hackintosh,黑苹果,linux"><meta itemprop="image" content="/images/avatar.png"></span><span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization"><meta itemprop="name" content="黑果小兵的部落阁"></span><header class="post-header"><h1 class="post-title" itemprop="name headline">macOS 10.13安装中常见的问题及解决方法</h1><div class="post-meta"><span class="post-time"><span class="post-meta-item-icon"><i class="fa fa-calendar-o"></i> </span><time title="创建时间：2017-09-28 09:50:25" itemprop="dateCreated datePublished" datetime="2017-09-28T09:50:25+08:00">2017-09-28</time> <span class="post-meta-divider">|</span> <span class="post-meta-item-icon"><i class="fa fa-calendar-check-o"></i> </span><time title="修改时间：2021-12-06 09:25:19" itemprop="dateModified" datetime="2021-12-06T09:25:19+08:00">2021-12-06</time> </span><span class="post-category"><span class="post-meta-divider">|</span> <span class="post-meta-item-icon"><i class="fa fa-folder-o"></i> </span><span itemprop="about" itemscope itemtype="http://schema.org/Thing"><a href="/categories/教程/" itemprop="url" rel="index"><span itemprop="name">教程</span></a></span> </span><span class="post-meta-divider">|</span> <span class="post-meta-item-icon" title="阅读次数"><i class="fa fa-eye"></i> <span class="busuanzi-value" id="busuanzi_value_page_pv"></span></span><div class="post-symbolscount"><span class="post-meta-item-icon"><i class="fa fa-file-word-o"></i> </span><span title="本文字数">12k</span> <span class="post-meta-divider">|</span> <span class="post-meta-item-icon"><i class="fa fa-clock-o"></i> </span><span title="阅读时长">22 分钟</span></div></div></header><div class="post-body" itemprop="articleBody"><h2 id="安装提示安装macos-应用程序副本已损坏不能用来安装macos的解决方法"><a class="markdownIt-Anchor" href="#安装提示安装macos-应用程序副本已损坏不能用来安装macos的解决方法"></a> 安装提示<code>安装macOS 应用程序副本已损坏，不能用来安装macOS</code>的解决方法</h2><blockquote><p>该错误会经常出现于旧版中，根源是苹果的安装镜像中的证书过期导致的。解决方法如下：</p></blockquote><ul><li><code>实用工具-终端</code>，输入命令：<code>date 0201010116</code>，回车后关闭<code>终端</code>，可继续安装进程；</li><li>安装过程中全程断开网络</li><li>另一种方法：<code>BIOS</code>中修正系统时间，误差不要多于5秒，应该能解决该提示信息【<code>黑果小兵亲测有效</code>】</li></ul><h2 id="去掉lilu的输出信息还原1013-内核崩溃kernel-pance的真相"><a class="markdownIt-Anchor" href="#去掉lilu的输出信息还原1013-内核崩溃kernel-pance的真相"></a> 去掉<code>Lilu</code>的输出信息,还原10.13 内核崩溃(kernel pance)的真相</h2><blockquote><p>援引:如果你有一个<code>kernel panic</code>，请确保你有一个DEBUG版本的扩展，并且已经添加了<code>-v keepyms = 1 debug = 0x100</code>引导参数。 在10.13上，为了避免kext名字在崩溃日志(panic log)中滚动，你也应该[修补你的内核]</p></blockquote><p>10.13的系统引导中,万一发生了<code>kernel panic</code>,也就是内核崩溃后,<code>Lilu</code>输出的信息过多,造成无法看清内核崩溃时的问题所在,这里教大家一种方法,去掉<code>Lilu</code>的输出信息,还原造成内核崩溃后面的真相</p><h3 id="解决方法1"><a class="markdownIt-Anchor" href="#解决方法1"></a> 解决方法1:</h3><p>使用文本编辑器打开<code>config.plist</code>文件,在</p><figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">key</span>&gt;</span>KernelToPatch<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br></pre></td></tr></table></figure><p>下面添加:</p><figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">array</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">dict</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">key</span>&gt;</span>Comment<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">string</span>&gt;</span>Disable panic kext logging on 10.13 Debug kernel<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">key</span>&gt;</span>Disabled<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">false</span>/&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">key</span>&gt;</span>Find<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">data</span>&gt;</span></span><br><span class="line">        sABMi1Xw</span><br><span class="line">        <span class="tag">&lt;/<span class="name">data</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">key</span>&gt;</span>MatchOS<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">string</span>&gt;</span>10.13<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">key</span>&gt;</span>Replace<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">data</span>&gt;</span></span><br><span class="line">        SIPEQF3D</span><br><span class="line">        <span class="tag">&lt;/<span class="name">data</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;/<span class="name">dict</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">dict</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">key</span>&gt;</span>Comment<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">string</span>&gt;</span>Disable panic kext logging on 10.13 Release kernel<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">key</span>&gt;</span>Disabled<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">false</span>/&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">key</span>&gt;</span>Find<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">data</span>&gt;</span></span><br><span class="line">        igKEwHRE</span><br><span class="line">        <span class="tag">&lt;/<span class="name">data</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">key</span>&gt;</span>MatchOS<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">string</span>&gt;</span>10.13<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">key</span>&gt;</span>Replace<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;<span class="name">data</span>&gt;</span></span><br><span class="line">        igKEwOtE</span><br><span class="line">        <span class="tag">&lt;/<span class="name">data</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;/<span class="name">dict</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">array</span>&gt;</span></span><br></pre></td></tr></table></figure><h3 id="解决方法2"><a class="markdownIt-Anchor" href="#解决方法2"></a> 解决方法2:</h3><p>使用<code>Clover Configurator</code>打开<code>config.plist</code> - <code>Kernel and Kext Patches</code> - <code>kernelToPatch</code>，新添加：</p><figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="symbol">Comment:</span>    Disable panic kext logging on <span class="number">10.13</span> Debug kernel</span><br><span class="line"><span class="symbol">Find:</span>       b0004c8b <span class="number">55</span>f<span class="number">0</span></span><br><span class="line"><span class="symbol">Replace:</span>    <span class="number">4883</span>c44<span class="number">0</span> <span class="number">5</span>dc3</span><br><span class="line"><span class="symbol">MatchOS:</span>    <span class="number">10.13</span></span><br><span class="line"></span><br><span class="line"><span class="symbol">Comment:</span>    Disable panic kext logging on <span class="number">10.13</span> Release kernel</span><br><span class="line"><span class="symbol">Find:</span>       <span class="number">8</span>a0284c<span class="number">0</span> <span class="number">7444</span></span><br><span class="line"><span class="symbol">Replace:</span>    <span class="number">8</span>a0284c<span class="number">0</span> eb44</span><br><span class="line"><span class="symbol">MatchOS:</span>    <span class="number">10.13</span></span><br></pre></td></tr></table></figure><h2 id="8750h核显黑屏的临时解决方法"><a class="markdownIt-Anchor" href="#8750h核显黑屏的临时解决方法"></a> 8750h核显黑屏的临时解决方法：</h2><figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">Comment	<span class="number">8750</span>h黑屏补丁</span><br><span class="line">Find	<span class="number">00000</span>80<span class="number">0</span> <span class="number">02000000</span> <span class="number">98000000</span></span><br><span class="line">Name	com.apple.driver.AppleIntelKBLGraphicsFramebuffer</span><br><span class="line">Replace	<span class="number">00000</span>80<span class="number">0</span> <span class="number">02000000</span> <span class="number">87010000</span></span><br></pre></td></tr></table></figure><p>将内屏设置成外屏后，亮度值不可调，可以通过<code>Clover Configurator</code>里面的<code>SystemParameters</code>-<code>BacklightLevel</code>设置亮度值：<code>0x00c8</code>，这个亮度值可以调整成你喜欢的亮度。</p><p>原帖出处:<a href="https://www.tonymacx86.com/threads/help-black-screen-when-uhd630-run-with-internal-screen.250577/page-5#post-1762999" target="_blank" rel="noopener">https://www.tonymacx86.com/threads/help-black-screen-when-uhd630-run-with-internal-screen.250577/page-5#post-1762999</a></p><h2 id="10130123-改变usb端口限制补丁"><a class="markdownIt-Anchor" href="#10130123-改变usb端口限制补丁"></a> 10.13.0/1/2/3 改变USB端口限制补丁</h2><figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">Comment	<span class="number">10.13</span>.<span class="number">0</span>/<span class="number">1</span>/<span class="number">2</span>/<span class="number">3</span> USB Port <span class="number">10</span>-&gt;<span class="number">26</span></span><br><span class="line">Find	<span class="number">837</span>D8C1<span class="number">0</span></span><br><span class="line">Name	com.apple.driver.usb.AppleUSBXHCI</span><br><span class="line">Replace	<span class="number">837</span>D8C1B</span><br><span class="line">MatchOS	<span class="number">10.13</span>.<span class="number">0</span>,<span class="number">10.13</span>.<span class="number">1</span>,<span class="number">10.13</span>.<span class="number">2</span>,<span class="number">10.13</span>.<span class="number">3</span></span><br></pre></td></tr></table></figure><h2 id="101345-关闭usb端口限制补丁"><a class="markdownIt-Anchor" href="#101345-关闭usb端口限制补丁"></a> 10.13.4/5 关闭USB端口限制补丁</h2><figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">Comment	disable USB Port Limit Patch (PMheart)</span><br><span class="line">Find	<span class="number">837</span>D940F 0F839704 <span class="number">0000</span></span><br><span class="line">Name	com.apple.driver.usb.AppleUSBXHCI</span><br><span class="line">Replace	<span class="number">837</span>D940F <span class="number">90909090</span> <span class="number">9090</span></span><br><span class="line">MatchOS	<span class="number">10.13</span>.x</span><br></pre></td></tr></table></figure><h2 id="10136-改变usb端口限制补丁"><a class="markdownIt-Anchor" href="#10136-改变usb端口限制补丁"></a> 10.13.6 改变USB端口限制补丁</h2><figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">Comment	USB Port <span class="number">15</span>-&gt;<span class="number">26</span></span><br><span class="line">Find	<span class="number">837</span>d880f 0f83a704</span><br><span class="line">Name	com.apple.driver.usb.AppleUSBXHCI</span><br><span class="line">Replace	<span class="number">837</span>d881a 0f83a704</span><br><span class="line">MatchOS	<span class="number">10.13</span>.<span class="number">6</span></span><br></pre></td></tr></table></figure><p>补丁出处：<a href="https://www.insanelymac.com/forum/topic/334239-pre-release-macos-high-sierra-10136-beta-17g31f/?do=findComment&amp;comment=2615919" target="_blank" rel="noopener">insanelymac.com</a></p><h2 id="macos升级后应该先插入啥"><a class="markdownIt-Anchor" href="#macos升级后应该先插入啥"></a> macOS升级后应该先插入啥？</h2><p>有些群友通过<code>App Store</code>更新了系统后，就会在群里提出更新后某些功能不正常了，我的方法是直接使用<code>Kext Utility</code>重建缓存再重启，包治百病！比如：HDMI Audio输出没了，内屏背光亮度不可调等等。</p><h2 id="安装过程中出现错误信息goodwinhwpenabler11"><a class="markdownIt-Anchor" href="#安装过程中出现错误信息goodwinhwpenabler11"></a> 安装过程中出现错误信息<code>good.win.HWPEnabler（1.1）</code></h2><p>该问题是由于新版的CLOVER中集成了HWPEnabler这个新平台的变频程序，如果你的机器比较老旧，那么就需要禁用掉这个驱动以使安装程序得以进行。那么如何操作呢？现在就让我们搬出CLOVER自带的<code>Block Injected kexts</code>吧</p><h3 id="block-injected-kexts-禁用无效的-未知的驱动程序"><a class="markdownIt-Anchor" href="#block-injected-kexts-禁用无效的-未知的驱动程序"></a> Block injected kexts 禁用无效的、未知的驱动程序</h3><p>当你面对这么一堆驱动的时候，如何让它们有条不紊地正常工作呢？万一出现问题的时候又如何让这些驱动在Clover引导的时候禁用它们呢？这个时候 <code>Block injected kexts</code> 就派上用场了。新版的 <code>Clover Bootloader</code> 已经将 <code>Block injected kexts</code> 放到了 <code>macOS</code> 系统分区的图标下面了。</p><ul><li>操作方法：<ul><li>开机进入clover引导界面，要引导的分区卷标上按 <code>空格</code> 即可进入<br><img src="https://pics.daliansky.net/d/xD0Ar91B/blog/1-main.png?download=1" alt="1-main"></li><li>光标移动到 <code>Block injected kexts</code> 回车进入<br><img src="https://pics.daliansky.net/d/xD0Ar91B/blog/Blockinjectedkexts.png?download=1" alt="kim"></li><li>选择当前系统加载的驱动程序目录<br><img src="https://pics.daliansky.net/d/xD0Ar91B/blog/BIKSelect.png?download=1" alt="kimselect"></li><li>勾选禁用的驱动程序<br><img src="https://pics.daliansky.net/d/xD0Ar91B/blog/BIKChoose.png?download=1" alt="kimoptions"></li><li>按 <code>ESC</code> 退出该子菜单</li></ul></li></ul><h2 id="误食了偏方进不了系统怎么办"><a class="markdownIt-Anchor" href="#误食了偏方进不了系统怎么办"></a> 误食了偏方进不了系统怎么办？</h2><blockquote><p>经常会有群友说是安装了<code>ALCPlugFix</code>后重启无法进入系统的问题，这是由于新的10.13.2及以后的重建缓存的命令发生了改变，部分机器会出现类似的问题。现在我把恢复的方法公布出来，让更多的人看到，同时也在此提醒大家使用<code>KEXT UTILITY</code>这个应用程序来重建缓存。请及时更新各声卡驱动所配套的<code>ALCPlugFix</code>，我发布的程序中已经使用新的重建缓存的命令。</p></blockquote><h3 id="恢复方法"><a class="markdownIt-Anchor" href="#恢复方法"></a> 恢复方法：</h3><ul><li><p>在<code>Clover</code> 主界面选择<code>Recovery</code>进入恢复模式，如果没有<code>Recovery</code>的图标，请按下<code>F3</code></p></li><li><p>打开终端，依次输入这三条命令：</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">rm -rf /Volumes/MAC/System/Library/Caches/com.apple.kext.caches/Startup/kernelcache</span><br><span class="line">rm -rf /Volumes/MAC/System/Library/PrelinkedKernels/prelinkedkernel</span><br><span class="line">touch  /Volumes/MAC/System/Library/Extensions/ &amp;&amp; kextcache -u /Volumes/MAC</span><br></pre></td></tr></table></figure><p>​	其中的<code>MAC</code>是你安装<code>macOS</code>的卷标，请替换成你自己的</p></li><li><p>重启</p></li></ul><h3 id="挂载efi分区"><a class="markdownIt-Anchor" href="#挂载efi分区"></a> 挂载EFI分区</h3><p>Windows操作系统下面,以系统管理员身份打开<code>cmd</code>,输入命令:</p><figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">c:\&gt;diskpart</span><br><span class="line">list disk           <span class="comment"># 磁盘列表</span></span><br><span class="line">select disk n       <span class="comment"># 选择EFI分区所在的磁盘，n为磁盘号</span></span><br><span class="line">list partition      <span class="comment"># 磁盘分区列表</span></span><br><span class="line">select partition n  <span class="comment"># 选择EFI分区，n为EFI分区号</span></span><br><span class="line"><span class="built_in">set</span> id=<span class="string">"ebd0a0a2-b9e5-4433-87c0-68b6b72699c7"</span>	<span class="comment"># 设置为EFI分区</span></span><br><span class="line">assign letter=X     <span class="comment"># x为EFI分区盘符</span></span><br><span class="line"><span class="built_in">exit</span>				<span class="comment"># 退出diskpart</span></span><br><span class="line">notepad				<span class="comment"># 打开记事本程序，点击文件-&gt;打开，即可访问EFI分区</span></span><br></pre></td></tr></table></figure><p>您可以重复输入命令同时挂载USB的EFI分区和磁盘的EFI分区</p><h2 id="安装1013时卡在service-only-ran-for-0-seconds-pushing-respawn-out-by-10-second"><a class="markdownIt-Anchor" href="#安装1013时卡在service-only-ran-for-0-seconds-pushing-respawn-out-by-10-second"></a> 安装10.13时卡在<code>Service only ran for 0 seconds. Pushing respawn out by 10 second</code></h2><blockquote><p>此种现象常见于笔记本机型，由于10.13中的DSDT屏蔽独显方式失效，现使用 <code>hotpatch</code> 方式进行独显屏蔽。</p></blockquote><h3 id="使用方法"><a class="markdownIt-Anchor" href="#使用方法"></a> 使用方法：</h3><p>将 <code>SSDT-Disable-DGPU.aml</code> 复制到 <code>/EFI/CLOVER/ACPI/patched</code> 目录下即可</p><h3 id="下载链接httpspanbaiducoms1skrciyl"><a class="markdownIt-Anchor" href="#下载链接httpspanbaiducoms1skrciyl"></a> 下载链接：<a href="https://pan.baidu.com/s/1skRcIyL" target="_blank" rel="noopener">https://pan.baidu.com/s/1skRcIyL</a></h3><h2 id="解决安装时提示-osinstallmpkg似乎已缺失或已损坏-的问题"><a class="markdownIt-Anchor" href="#解决安装时提示-osinstallmpkg似乎已缺失或已损坏-的问题"></a> 解决安装时提示 <code>OSInstall.mpkg似乎已缺失或已损坏</code> 的问题</h2><h3 id="解决方法"><a class="markdownIt-Anchor" href="#解决方法"></a> 解决方法：</h3><h4 id="删除-eficloverdrivers64uefiemuvariableuefi-64efi-和-efi-分区根目录下的-nvramplist"><a class="markdownIt-Anchor" href="#删除-eficloverdrivers64uefiemuvariableuefi-64efi-和-efi-分区根目录下的-nvramplist"></a> 删除 <code>/EFI/CLOVER/drivers64UEFI/EmuVariableUefi-64.efi</code> 和 <code>/EFI/</code> 分区根目录下的 <code>nvram.plist</code></h4><h4 id="修改smbios使用clover-configurator将机型设置为2012年及以后机型"><a class="markdownIt-Anchor" href="#修改smbios使用clover-configurator将机型设置为2012年及以后机型"></a> 修改<code>SMBIOS</code>,使用<code>Clover Configurator</code>将机型设置为2012年及以后机型</h4><h2 id="解决1013-nvidia安装web-driver黑屏问题"><a class="markdownIt-Anchor" href="#解决1013-nvidia安装web-driver黑屏问题"></a> 解决10.13 NVIDIA安装Web Driver黑屏问题</h2><h3 id="解决方法-2"><a class="markdownIt-Anchor" href="#解决方法-2"></a> 解决方法：</h3><p>在 <code>/EFI/CLOVER/kexts/Other</code> 目录下添加驱动： <a href="https://sourceforge.net/p/nvidiagraphicsfixup" target="_blank" rel="noopener">NvidiaGraphicsFixup</a> 该驱动依赖于 <a href="https://github.com/vit9696/Lilu/releases" target="_blank" rel="noopener">Lilu</a></p><blockquote><p>更多基于<a href="https://github.com/vit9696/Lilu/" target="_blank" rel="noopener">Lilu</a>的插件列表请移步：<a href="https://blog.daliansky.net/Existing-Lilu-Plugins.html">Lilu插件列表</a></p></blockquote><h2 id="解决1013下某些机械硬盘无法读取的问题"><a class="markdownIt-Anchor" href="#解决1013下某些机械硬盘无法读取的问题"></a> 解决10.13下某些机械硬盘无法读取的问题</h2><p>使用<code>Clover Configurator</code>打开<code>config.plist</code> - <code>Kernel and Kext Patches</code> - <code>KextsToPatch</code>，新添加：</p><figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="symbol">Name:</span>       AppleAHCIPort</span><br><span class="line"><span class="symbol">Comment:</span>    修复ICH1<span class="number">0</span>芯片 I/O Error 错误</span><br><span class="line"><span class="symbol">Find:</span>       <span class="number">4585</span>F60F <span class="number">95</span>C289C8 <span class="number">83</span>E0FE66 <span class="number">85</span>C9780F <span class="number">84</span>D2750B</span><br><span class="line"><span class="symbol">Replace:</span>    <span class="number">89</span>C883E<span class="number">0</span> FE6685C9 0F98C141 08CC909<span class="number">0</span> <span class="number">9090750</span>B</span><br><span class="line"><span class="symbol">MatchOS:</span>    <span class="number">10.13</span>.x</span><br></pre></td></tr></table></figure><p>另一种格式：</p><figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">dict</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">key</span>&gt;</span>Comment<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">string</span>&gt;</span>修复ICH10芯片 I/O Error 错误<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">key</span>&gt;</span>Disabled<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">false</span>/&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">key</span>&gt;</span>Find<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">   <span class="tag">&lt;<span class="name">data</span>&gt;</span>RYX2D5XCiciD4P5mhcl4D4TSdQs=<span class="tag">&lt;/<span class="name">data</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">key</span>&gt;</span>MatchOS<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">string</span>&gt;</span>10.13.x<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">key</span>&gt;</span>Name<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">string</span>&gt;</span>AppleAHCIPort<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">key</span>&gt;</span>Replace<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">data</span>&gt;</span>iciD4P5mhckPmMFBCMyQkJCQdQs=<span class="tag">&lt;/<span class="name">data</span>&gt;</span></span><br><span class="line"> <span class="tag">&lt;/<span class="name">dict</span>&gt;</span></span><br></pre></td></tr></table></figure><h2 id="解决1013high-sierra1012sierra-clover开机出现8个苹果"><a class="markdownIt-Anchor" href="#解决1013high-sierra1012sierra-clover开机出现8个苹果"></a> 解决10.13(High Sierra)/10.12(Sierra) Clover开机出现8个苹果</h2><p>使用<code>Clover Configurator</code>打开<code>config.plist</code> - <code>Kernel and Kext Patches</code> - <code>KextsToPatch</code>，新添加：</p><figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="symbol">Name:</span>       IOGraphicsFamily</span><br><span class="line"><span class="symbol">Comment:</span>    <span class="number">10.12</span>+-第二阶段花屏</span><br><span class="line"><span class="symbol">Find:</span>       <span class="number">01000075</span> <span class="number">25</span></span><br><span class="line"><span class="symbol">Replace:</span>    <span class="number">010000</span>eb <span class="number">25</span></span><br><span class="line"><span class="symbol">MatchOS:</span>    <span class="number">10.12</span>.x</span><br></pre></td></tr></table></figure><figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="symbol">Name:</span>       IOGraphicsFamily</span><br><span class="line"><span class="symbol">Comment:</span>    <span class="number">10.13</span>+-第二阶段花屏</span><br><span class="line"><span class="symbol">Find:</span>       <span class="number">01000075</span> <span class="number">22</span></span><br><span class="line"><span class="symbol">Replace:</span>    <span class="number">010000</span>eb <span class="number">22</span></span><br><span class="line"><span class="symbol">MatchOS:</span>    <span class="number">10.13</span>.x</span><br></pre></td></tr></table></figure><p>另一种格式：</p><figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">dict</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">key</span>&gt;</span>Comment<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">string</span>&gt;</span>10.12+-第二阶段花屏补丁<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">key</span>&gt;</span>Disabled<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">false</span>/&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">key</span>&gt;</span>Find<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">data</span>&gt;</span></span><br><span class="line">	AQAAdSU=</span><br><span class="line">	<span class="tag">&lt;/<span class="name">data</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">key</span>&gt;</span>MatchOS<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">string</span>&gt;</span>10.12.x<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">key</span>&gt;</span>Name<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">string</span>&gt;</span>IOGraphicsFamily<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">key</span>&gt;</span>Replace<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">data</span>&gt;</span></span><br><span class="line">	AQAA6yU=</span><br><span class="line">	<span class="tag">&lt;/<span class="name">data</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">dict</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">dict</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">key</span>&gt;</span>Comment<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">string</span>&gt;</span>10.13+-第二阶段花屏补丁<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">key</span>&gt;</span>Disabled<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">false</span>/&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">key</span>&gt;</span>Find<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">data</span>&gt;</span></span><br><span class="line">	AQAAdSI=</span><br><span class="line">	<span class="tag">&lt;/<span class="name">data</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">key</span>&gt;</span>MatchOS<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">string</span>&gt;</span>10.13.x<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">key</span>&gt;</span>Name<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">string</span>&gt;</span>IOGraphicsFamily<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">key</span>&gt;</span>Replace<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">	<span class="tag">&lt;<span class="name">data</span>&gt;</span></span><br><span class="line">	AQAA6yI=</span><br><span class="line">	<span class="tag">&lt;/<span class="name">data</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">dict</span>&gt;</span></span><br></pre></td></tr></table></figure><h2 id="不使用任何程序教你提取显示器的edid解决笔记本显示器内屏黑屏花屏的问题"><a class="markdownIt-Anchor" href="#不使用任何程序教你提取显示器的edid解决笔记本显示器内屏黑屏花屏的问题"></a> 不使用任何程序教你提取显示器的EDID，解决笔记本显示器内屏黑屏/花屏的问题</h2><blockquote><p>经常有网友需要解决笔记本显示器内屏黑屏问题，尤其新发布的10.13的系统会出现睡眠唤醒后屏幕花屏问题。</p></blockquote><p>目前最简单的方案就是通过clover注入显示器的EDID信息，之前网上的教程都是使用Windows下的应用程序进行操作。<br>其实显示器的EDID信息都会在显卡正确驱动后存在于ioreg中的。</p><h3 id="最简单的命令是"><a class="markdownIt-Anchor" href="#最简单的命令是"></a> 最简单的命令是：</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ioreg -lw0 | grep -i <span class="string">"IODisplayEDID"</span> | sed -e <span class="string">'s/.*&lt;//'</span> -e <span class="string">'s/&gt;//'</span></span><br></pre></td></tr></table></figure><h3 id="显示信息如下"><a class="markdownIt-Anchor" href="#显示信息如下"></a> 显示信息如下：</h3><p><code>00ffffffffffff000daee01500000000161a0104952213780228659759548e271e505400000001010101010101010101010101010101b43b804a713834405036680058c11000001ac32f804a713834405036680058c11000001a000000fe0035324b4636803135364843410a000000000000413196011000000a010a202000e8</code></p><h3 id="接着输入下面的两条命令"><a class="markdownIt-Anchor" href="#接着输入下面的两条命令"></a> 接着输入下面的两条命令：</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">ioreg -l | grep <span class="string">"DisplayVendorID"</span>  </span><br><span class="line">    <span class="string">"DisplayVendorID"</span> = 3502</span><br><span class="line">    </span><br><span class="line">ioreg -l | grep <span class="string">"DisplayProductID"</span>  </span><br><span class="line">    <span class="string">"DisplayProductID"</span> = 5600</span><br></pre></td></tr></table></figure><p>其中&lt;&gt;里面的内容就是显示器的EDID信息，将提取出来的EDID信息粘贴到clover的 <code>config.plist</code> 中，顺便将 <code>VendorID</code> 和 <code>ProductID</code> 填入相应的位置，然后保存重启你的电脑。<br><img src="https://pics.daliansky.net/d/xD0Ar91B/blog/EDID%E6%B3%A8%E5%85%A5.png?download=1" alt="EDID注入"></p><h2 id="选择-v时出现attempting-system-restartmach-reboot的解决方法"><a class="markdownIt-Anchor" href="#选择-v时出现attempting-system-restartmach-reboot的解决方法"></a> 选择-v时出现<code>Attempting system restart...MACH Reboot</code>的解决方法</h2><blockquote><p>在安装High Sierra启动过程中，选择-v跑时会出现&quot;Attempting system restart…MACH Reboot”，而不用-v图跑直接显示苹果标志时则不会出现。</p></blockquote><h3 id="解决方法-3"><a class="markdownIt-Anchor" href="#解决方法-3"></a> 解决方法</h3><p>在<code>config.plist</code>配置文件<code>DropTables</code>下添加以下代码：</p><figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">key</span>&gt;</span>ACPI<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">key</span>&gt;</span>DropTables<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">array</span>&gt;</span></span><br><span class="line">  <span class="tag">&lt;<span class="name">dict</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">key</span>&gt;</span>Signature<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">string</span>&gt;</span>MATS<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">  <span class="tag">&lt;/<span class="name">dict</span>&gt;</span></span><br><span class="line">  <span class="tag">&lt;<span class="name">dict</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">key</span>&gt;</span>Signature<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">string</span>&gt;</span>DMAR<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">  <span class="tag">&lt;/<span class="name">dict</span>&gt;</span></span><br><span class="line">  <span class="tag">&lt;<span class="name">dict</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">key</span>&gt;</span>Signature<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">string</span>&gt;</span>BGRT<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br><span class="line">  <span class="tag">&lt;/<span class="name">dict</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">array</span>&gt;</span></span><br></pre></td></tr></table></figure><h2 id="关于开机出现welcome-to-clover-xxxx-user-settings卡住不动的解决方法"><a class="markdownIt-Anchor" href="#关于开机出现welcome-to-clover-xxxx-user-settings卡住不动的解决方法"></a> 关于开机出现<code>Welcome to Clover xxxx user settings</code>卡住不动的解决方法</h2><blockquote><p>根源是<code>Clover</code>目录下自带的<code>config.plist</code>它并不适用于你的系统</p></blockquote><h3 id="解决方法-4"><a class="markdownIt-Anchor" href="#解决方法-4"></a> 解决方法</h3><ul><li>删除<code>config.plist</code>,找个适合你的机型的配置文件改名为:<code>config.plist</code></li><li>如果还是卡住的话,就把<code>ACPI/patched</code>目录下除了<code>SSDT-Disable-DGPU.aml</code>的所有文件全部删除.</li><li>或者使用与您相同机型的EFI直接替换</li></ul><h2 id="抹盘时提示mediakit报告设备上的空间不足以执行请求的操作的原因及解决方法"><a class="markdownIt-Anchor" href="#抹盘时提示mediakit报告设备上的空间不足以执行请求的操作的原因及解决方法"></a> 抹盘时提示&quot;MediaKit报告设备上的空间不足以执行请求的操作&quot;的原因及解决方法</h2><blockquote><p>群里遇到最多的问题就是抹盘时提示&quot;MediaKit报告设备上的空间不足以执行请求的操作&quot;,一直想就此写个解决方法</p></blockquote><h3 id="原因"><a class="markdownIt-Anchor" href="#原因"></a> 原因</h3><p>出现该提示最根本的原因就是你之前的磁盘分区中<code>ESP</code>分区的尺寸小于200MB</p><h3 id="解决方法-5"><a class="markdownIt-Anchor" href="#解决方法-5"></a> 解决方法</h3><ul><li><code>Windows</code>下使用<code>diskgenius</code>删除掉<code>MSR</code>分区,将多出来的分区合并到<code>ESP</code>,正好凑成200MB,以满足安装<code>macOS</code>的基本需求.</li><li><code>macOS</code>下可以直接使用<code>磁盘工具</code>进行抹盘,它会自动生成一个200MB的EFI分区,当然前提条件是你需要先备份好磁盘里的数据,否则会造成全盘数据的丢失,请谨慎操作.</li></ul><h2 id="macos下使用brew安装android-platform-tools工具连接安卓设备"><a class="markdownIt-Anchor" href="#macos下使用brew安装android-platform-tools工具连接安卓设备"></a> macOS下使用<code>brew</code>安装<code>android-platform-tools</code>工具连接安卓设备</h2><blockquote><p>有群友反馈说<code>HandShark</code>无法连接安卓手机进行管理,于是将<code>macOS</code>下安装<code>Android</code>驱动的过程写下来,目的是为了让大家都能使用<code>macOS</code>管理安卓设备</p></blockquote><h3 id="什么是-adb"><a class="markdownIt-Anchor" href="#什么是-adb"></a> 什么是 ADB?</h3><p>Android调试桥（ adb ）是一个开发工具，帮助安卓设备和个人计算机之间的通信。 这种通信大多是在USB电缆下进行，但是也支持Wi-Fi连接。 adb 还可被用来与电脑上运行的安卓模拟器交流通信。 adb 对于安卓开发来说就像一把“瑞士军刀”。</p><p><code>macOS</code>可以通过<code>brew</code>安装<code>android-platform-tools</code>驱动,用于连接安卓设备,方法如下:</p><ul><li><p>安装<code>Homebrew</code>工具:打开终端,输入命令:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">/usr/bin/ruby -e <span class="string">"<span class="variable">$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)</span>"</span></span><br></pre></td></tr></table></figure><p>它会自动安装brew及依赖包,同时也会安装<code>XCODE Command Line Tools</code>,出现密码请输入你的用户密码</p></li><li><p>安装<code>android-platform-tools</code></p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">brew cask install android-platform-tools</span><br></pre></td></tr></table></figure><p>这个过程有些漫长,请耐心等待.</p></li><li><p>安装完成后,连接安卓设备,输入命令:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">adb devices</span><br></pre></td></tr></table></figure><p>正常情况下,它会显示出如下的信息:</p><figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">3HX7N17114012345	device</span><br></pre></td></tr></table></figure><p>也有可能需要在手机上确认允许来自<code>macOS</code>的连接</p></li><li><p>使用<code>HandShark</code>管理你的手机吧.</p></li></ul><h2 id="关于本机cpu处理器显示未知的解决方法"><a class="markdownIt-Anchor" href="#关于本机cpu处理器显示未知的解决方法"></a> 关于本机CPU处理器显示<code>未知</code>的解决方法：</h2><p>打开终端，输入：</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/Resources/zh_CN.lproj/</span><br><span class="line">cp AppleSystemInfo.strings ~/Desktop</span><br></pre></td></tr></table></figure><p>使用编辑器<code>BBEdit</code>打开<code>AppleSystemInfo.strings</code>，将</p><figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">key</span>&gt;</span>UnknownCPUKind<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">string</span>&gt;</span>未知<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br></pre></td></tr></table></figure><p>修改为：</p><figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">key</span>&gt;</span>UnknownCPUKind<span class="tag">&lt;/<span class="name">key</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">string</span>&gt;</span>Intel Core i7-8700K<span class="tag">&lt;/<span class="name">string</span>&gt;</span></span><br></pre></td></tr></table></figure><p>保存后退出。打开终端，输入：</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo cp ~/Desktop/AppleSystemInfo.strings /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/Resources/zh_CN.lproj/</span><br></pre></td></tr></table></figure><p>输入用户密码，收工。<br><img src="https://pics.daliansky.net/d/xD0Ar91B/blog/10.13.4/About.png?download=1" alt="关于本机"></p><h2 id="nvidia-webdriver驱动小版本更新后使用之前版本的命令"><a class="markdownIt-Anchor" href="#nvidia-webdriver驱动小版本更新后使用之前版本的命令"></a> Nvidia WebDriver驱动小版本更新后使用之前版本的命令</h2><h3 id="方法"><a class="markdownIt-Anchor" href="#方法"></a> 方法：</h3><p>打开终端，输入命令：</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo plutil -replace IOKitPersonalities.NVDAStartup.NVDARequiredOS -string $(sw_vers -buildVersion) /S*/L*/E*/NVDAStartupWeb.kext/C*/Info.plist</span><br></pre></td></tr></table></figure><p>收工</p><h2 id="重建缓存的命令"><a class="markdownIt-Anchor" href="#重建缓存的命令"></a> 重建缓存的命令</h2><p>打开终端，输入命令：</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#!/bin/sh</span></span><br><span class="line">sudo chmod -Rf 755 /S*/L*/E*</span><br><span class="line">sudo chown -Rf 0:0 /S*/L*/E*</span><br><span class="line">sudo chmod -Rf 755 /L*/E*</span><br><span class="line">sudo chown -Rf 0:0 /L*/E*</span><br><span class="line">sudo rm -Rf /S*/L*/PrelinkedKernels/*</span><br><span class="line">sudo rm -Rf /S*/L*/Caches/com.apple.kext.caches/*</span><br><span class="line">sudo touch -f /S*/L*/E*</span><br><span class="line">sudo touch -f /L*/E*</span><br><span class="line">sudo kextcache -Boot -U /</span><br></pre></td></tr></table></figure><h2 id="感谢名单"><a class="markdownIt-Anchor" href="#感谢名单"></a> 感谢名单</h2><ul><li><a href="https://www.apple.com/" target="_blank" rel="noopener">Apple</a> 的 macOS</li><li><a href="https://github.com/rehabman" target="_blank" rel="noopener">RehabMan</a>维护的项目：<a href="https://github.com/RehabMan/OS-X-Clover-Laptop-Config" target="_blank" rel="noopener">OS-X-Clover-Laptop-Config</a> <a href="https://github.com/RehabMan/Laptop-DSDT-Patch" target="_blank" rel="noopener">Laptop-DSDT-Patch</a> <a href="https://github.com/RehabMan/OS-X-USB-Inject-All" target="_blank" rel="noopener">OS-X-USB-Inject-All</a>等</li><li><a href="https://github.com/acidanthera" target="_blank" rel="noopener">Acidanthera</a> 维护的项目：<a href="https://github.com/acidanthera/OpenCorePkg" target="_blank" rel="noopener">OpenCorePkg</a> <a href="https://github.com/acidanthera/Lilu" target="_blank" rel="noopener">lilu</a> <a href="https://github.com/acidanthera/AirportBrcmFixup" target="_blank" rel="noopener">AirportBrcmFixup</a> <a href="https://github.com/acidanthera/WhateverGreen" target="_blank" rel="noopener">WhateverGreen</a> <a href="https://github.com/acidanthera/VirtualSMC" target="_blank" rel="noopener">VirtualSMC</a> <a href="https://github.com/acidanthera/AppleALC" target="_blank" rel="noopener">AppleALC</a> <a href="https://github.com/acidanthera/BrcmPatchRAM" target="_blank" rel="noopener">BrcmPatchRAM</a> <a href="https://github.com/acidanthera/MaciASL" target="_blank" rel="noopener">MaciASL</a> 等</li><li><a href="https://www.insanelymac.com/forum/profile/1364628-headkaze/" target="_blank" rel="noopener">headkaze</a> 提供的工具：<a href="https://github.com/headkaze/Hackintool" target="_blank" rel="noopener">hackintool</a> <a href="https://github.com/headkaze/PinConfigurator" target="_blank" rel="noopener">PinConfigurator</a> <a href="https://www.insanelymac.com/forum/topic/339175-brcmpatchram2-for-1015-catalina-broadcom-bluetooth-firmware-upload/" target="_blank" rel="noopener">BrcmPatchRAM</a></li><li><a href="https://github.com/CloverHackyColor" target="_blank" rel="noopener">CloverHackyColor</a>维护的项目：<a href="https://github.com/CloverHackyColor/CloverBootloader" target="_blank" rel="noopener">CloverBootloader</a> <a href="https://github.com/CloverHackyColor/CloverThemes" target="_blank" rel="noopener">CloverThemes</a></li><li>宪武整理的：<a href="https://github.com/daliansky/P-little" target="_blank" rel="noopener">P-little</a> <a href="https://github.com/daliansky/OC-little" target="_blank" rel="noopener">OC-little</a></li><li><a href="https://github.com/chris1111" target="_blank" rel="noopener">chris1111</a>维护的项目：<a href="https://github.com/chris1111/VoodooHDA-2.9.2-Clover-V15" target="_blank" rel="noopener">VoodooHDA</a> <a href="https://github.com/chris1111/Wireless-USB-Adapter-Clover" target="_blank" rel="noopener">Wireless USB Adapter Clover</a></li><li><a href="https://github.com/zxystd" target="_blank" rel="noopener">zxystd</a>开发的<a href="https://github.com/zxystd/itlwm" target="_blank" rel="noopener">itlwm</a> <a href="https://github.com/zxystd/IntelBluetoothFirmware" target="_blank" rel="noopener">IntelBluetoothFirmware</a></li><li><a href="https://github.com/lihaoyun6" target="_blank" rel="noopener">lihaoyun6</a>提供的工具：<a href="https://github.com/lihaoyun6/CPU-S" target="_blank" rel="noopener">CPU-S</a> <a href="https://github.com/lihaoyun6/macOS-Displays-icon" target="_blank" rel="noopener">macOS-Displays-icon</a> <a href="https://github.com/lihaoyun6/SidecarPatcher" target="_blank" rel="noopener">SidecarPatcher</a></li><li><a href="https://github.com/SukkaW" target="_blank" rel="noopener">sukka</a>更新维护的<a href="https://blog.skk.moe/post/from-clover-to-opencore/" target="_blank" rel="noopener">从 Clover 到 OpenCore —— Clover 迁移 OpenCore 指南</a></li><li><a href="https://github.com/xzhih" target="_blank" rel="noopener">xzhih</a>提供的工具：<a href="https://github.com/xzhih/one-key-hidpi" target="_blank" rel="noopener">one-key-hidpi</a></li><li><a href="https://github.com/williambj1" target="_blank" rel="noopener">Bat.bat</a>更新维护的<a href="https://blog.daliansky.net/OpenCore-BootLoader.html">精解OpenCore</a></li><li><a href="https://github.com/shuiyunxc" target="_blank" rel="noopener">shuiyunxc</a> 更新维护的<a href="https://shuiyunxc.gitee.io/2020/04/06/Faults/index/" target="_blank" rel="noopener">OpenCore配置错误、故障与解决办法</a></li><li><a href="https://github.com/athlonreg" target="_blank" rel="noopener">athlonreg</a>更新维护的<a href="https://blog.cloudops.ml/ocbook/" target="_blank" rel="noopener">OpenCore 0.5+ 部件补丁</a> <a href="https://github.com/athlonreg/Common-patches-for-hackintosh" target="_blank" rel="noopener">Common-patches-for-hackintosh</a></li><li><a href="github.com">github.com</a></li><li><a href="gitee.io">码云 gitee.io</a></li><li><a href="coding.net">扣钉 coding.net</a></li></ul><h2 id="参考及引用"><a class="markdownIt-Anchor" href="#参考及引用"></a> 参考及引用：</h2><ul><li><a href="https://deviwiki.com/wiki/Dell" target="_blank" rel="noopener">https://deviwiki.com/wiki/Dell</a></li><li><a href="https://deviwiki.com/wiki/Dell_Wireless_1820A_(DW1820A)" target="_blank" rel="noopener">https://deviwiki.com/wiki/Dell_Wireless_1820A_(DW1820A)</a></li><li><a href="%5Bhttps://osxlatitude.com/profile/4953-herv%C3%A9/%5D(https://osxlatitude.com/profile/4953-herv%C3%A9/)">Hervé</a> 更新的Broadcom 4350:<a href="https://osxlatitude.com/forums/topic/12169-bcm4350-cards-registry-of-cardslaptops-interop/" target="_blank" rel="noopener">https://osxlatitude.com/forums/topic/12169-bcm4350-cards-registry-of-cardslaptops-interop/</a></li><li><a href="%5Bhttps://osxlatitude.com/profile/4953-herv%C3%A9/%5D(https://osxlatitude.com/profile/4953-herv%C3%A9/)">Hervé</a> 更新的DW1820A支持机型列表:<a href="https://osxlatitude.com/forums/topic/11322-broadcom-bcm4350-cards-under-high-sierramojave/" target="_blank" rel="noopener">https://osxlatitude.com/forums/topic/11322-broadcom-bcm4350-cards-under-high-sierramojave/</a></li><li><a href="https://osxlatitude.com/profile/129953-nickhx/" target="_blank" rel="noopener">nickhx</a> 提供的蓝牙驱动：<a href="https://osxlatitude.com/forums/topic/11540-dw1820a-for-7490-help/?do=findComment&amp;comment=92833" target="_blank" rel="noopener">https://osxlatitude.com/forums/topic/11540-dw1820a-for-7490-help/?do=findComment&amp;comment=92833</a></li><li><a href="https://blog.xjn819.com/" target="_blank" rel="noopener">xjn819</a>： <a href="https://blog.xjn819.com/?p=543" target="_blank" rel="noopener">使用OpenCore引导黑苹果</a> <a href="https://blog.xjn819.com/?p=317" target="_blank" rel="noopener">300系列主板正确使用AptioMemoryFix.efi的姿势(重写版）</a></li><li><a href="https://www.insanelymac.com/" target="_blank" rel="noopener">insanelymac.com</a></li><li><a href="https://www.tonymacx86.com/" target="_blank" rel="noopener">tonymacx86.com</a></li><li><a href="http://bbs.pcbeta.com" target="_blank" rel="noopener">远景论坛</a></li><li><a href="https://applelife.ru/" target="_blank" rel="noopener">applelife.ru</a></li><li><a href="https://www.olarila.com/" target="_blank" rel="noopener">olarila.com</a></li></ul><h2 id="关于打赏"><a class="markdownIt-Anchor" href="#关于打赏"></a> 关于打赏</h2><p>您的支持就是我更新的动力！<br>如果不希望看到博主停更的话，请点击下方的 <code>打赏</code> 支持一下，有钱的捧个钱场，没钱的捧个人场，谢谢大家！</p></div><div><div id="wechat_subscriber" style="display:block;padding:10px 0;margin:20px auto;width:100%;text-align:center"><img id="wechat_subscriber_qcode" src="/uploads/WeChatandShop.png" alt="黑果小兵 wechat" style="max-width:90%"><div>微信扫一扫，订阅/直达【黑果小兵的部落阁】</div></div></div><div class="updated"><svg xmlns="http://www.w3.org/2000/svg" width="130" height="20"><lineargradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></lineargradient><clippath id="a"><rect width="130" height="20" rx="3" fill="#fff"/></clippath><g clip-path="url(#a)"><path fill="#555" d="M0 0h55v20H0z"/><path fill="#97CA00" d="M55 0h75v20H55z"/><path fill="url(#b)" d="M0 0h130v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="Menlo,monospace" font-size="110"><text x="285" y="150" fill="#010101" fill-opacity=".3" textlength="450" transform="scale(.1)">更新日期</text><text x="285" y="140" textlength="450" transform="scale(.1)">更新日期</text><text x="915" y="150" fill="#010101" fill-opacity=".3" textlength="650" transform="scale(.1)">2021-12-06</text><text x="915" y="140" textlength="650" transform="scale(.1)">2021-12-06</text></g></svg></div><div><div><div style="text-align:center;color:#ccc;font-size:14px">-------------本文结束<i class="fa fa-apple"></i>感谢您的阅读-------------</div></div></div><div><div style="padding:10px 0;margin:20px auto;width:90%;text-align:center"><button id="rewardButton" disable="enable" onclick='var qr=document.getElementById("QR");"none"===qr.style.display?qr.style.display="block":qr.style.display="none"'><span>打赏</span></button><div>如果文章对您有帮助，就请站长喝杯咖啡吧 ´◡`</div><div id="QR" style="display:none"><div id="wechat" style="display:inline-block"><img id="wechat_qr" src="/images/wechatpay.jpg" alt="黑果小兵 微信支付"><p>微信支付</p></div><div id="alipay" style="display:inline-block"><img id="alipay_qr" src="/images/alipay.jpg" alt="黑果小兵 支付宝"><p>支付宝</p></div></div></div></div><div><div><ul class="qq-qun"><div><p></p><h2>QQ群列表：</h2><p></p><p>630724380 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=JyGkfKK7U3Xq3TDtpqKOTq_gW7SBg4Uh&jump_from=webapi" target="_blank" rel="noopener">黑果小兵黑苹果技术群7</a> 2000人 新开群<br>713810838 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=e8E-1Ge2lCoBSTlj8Y4zMxX7l7-V63Iv&jump_from=webapi" target="_blank" rel="noopener">黑果小兵黑苹果技术群8</a> 2000人 新开群<br>688324116 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=Fp4HZ5e8A61oCu0GMS5YUqP6COc43-AO&jump_from=webapi" target="_blank" rel="noopener">一起黑苹果</a> 2000人<br>331686786 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=No8zvDfvDicT-GfSApw1RMBI-3MQ7zM3&jump_from=webapi" target="_blank" rel="noopener">一起吃苹果</a> 2000人<br>257995340 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=acztqL9efoqAOoptc_3moZ9b3Sgczu9_&jump_from=webapi" target="_blank" rel="noopener">一起啃苹果</a> 2000人群 远景报备群<br>875482673 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=aZNyoRum_er2mruqmnbX_93ncHNgsyak&jump_from=webapi" target="_blank" rel="noopener">黑果小兵黑苹果技术群</a> 2000人<br>1058822256 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=1sIT0BDaejgr9t1Hlw16cMnw_Z96zleV&jump_from=webapi" target="_blank" rel="noopener">黑果小兵黑苹果技术群2</a> 2000人<br>819662911 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=aJx9xO7vAmyslCuOdK0bRMmDLpvOCeRw&jump_from=webapi" target="_blank" rel="noopener">黑果小兵黑苹果技术群3</a> 2000人<br>954098809 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=iu042k0X5snr--dzAxOzcsvD9Zft9yx7&jump_from=webapi" target="_blank" rel="noopener">黑果小兵黑苹果技术群4</a> 2000人<br>1161377948 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=kBV9vCnz-NqtXXJiwnUhaLyJN1D7G0n6&jump_from=webapi" target="_blank" rel="noopener">黑果小兵黑苹果技术群5</a> 2000人<br>553283949 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=kr_hZc5pKK4TCDRaFPwRlfAiB4528InP&jump_from=webapi" target="_blank" rel="noopener">黑果小兵黑苹果技术群6</a> 2000人<br>701278330 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=x57TlUmxz88oXGDWjMOOsWokYi8klE11&jump_from=webapi" target="_blank" rel="noopener">黑苹果无线网卡交流群</a> 1000人群 DW1820A技术支持群<br>891434070 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=TUAxSUUtw_T1N62V0kF1sWvMcDr_eoxc&jump_from=webapi" target="_blank" rel="noopener">Catalina黑苹果交流群</a> 2000人群 远景报备群<br>939122730 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=g_rpf7m0LJllE6WHY9c0gVvCTBm1MtuN&jump_from=webapi" target="_blank" rel="noopener">Catalina黑苹果交流II群</a> 2000人群<br>891677227 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=xsuIOzF7RXYaRTTbJ5o_UjzohRDUx5UY&jump_from=webapi" target="_blank" rel="noopener">黑果小兵高级群</a> 2000人群<br>943307869 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=aoSvqrbysdjPo0Wa_XvvPuMG9NMEtOie&jump_from=webapi" target="_blank" rel="noopener">黑果小兵高级群II</a> 2000人群<br>275356796 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=H7hFwiVkZq71L7se6rz3hE9QcacqL-dV&jump_from=webapi" target="_blank" rel="noopener">morefine黑苹果技术交流群</a> 500人群 非专用机型请勿加入<br>869792897 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=MTDHb2QgLH3gkaymtdFCpk77J5ufWJpH&jump_from=webapi" target="_blank" rel="noopener">minisforum U820黑苹果技术群</a> 500人群 非专用机型请勿加入<br>942112153 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=N5cjw5ksrnmk-RMQ4fPCOo5D_Dxiu47B&jump_from=webapi" target="_blank" rel="noopener">天逸510s Mini黑苹果交流群</a> 1000人群 非专用机型请勿加入<br>673294583 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=GgcMJM5-98yB-fc6zyGcTI3OuesrSBRk&jump_from=webapi" target="_blank" rel="noopener">小新Pro黑苹果技术群</a> 2000人群 非专用机型请勿加入<br>946132482 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=r-m99xC-BPIRdVkEjU6duvqXMJ-1FOwA&jump_from=webapi" target="_blank" rel="noopener">小新Pro黑苹果</a> 500人群 非专用机型请勿加入<br>158976808 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=c9DeeyUg9x4dZlOpIVmj4R4g38p-YCZ1&jump_from=webapi" target="_blank" rel="noopener">DELL黑苹果交流群</a> 1000人群 非专用机型请勿加入<br>247451054 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=h7fvRnWmdaMK2D0qVQLzJsjCC9PwB5h3&jump_from=webapi" target="_blank" rel="noopener">小米Pro黑苹果高级群</a> 2000人群 非专用机型请勿加入<br>943181023 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=OGO_GSX9ZhtbQ_HNns57Vdxm5pR1wH6V&jump_from=webapi" target="_blank" rel="noopener">联想小新Air黑苹果交流群</a> 500人群 非专用机型请勿加入<br></p><p></p><h2>Telegram群：</h2><p></p><p>黑果小兵的部落阁 <a href="http://t.me/daliansky" target="_blank">http://t.me/daliansky</a><br>黑果小兵的部落阁 #安装问题讨论 <a href="https://t.me/macos_installer" target="_blank">https://t.me/macos_installer</a></p></div></ul></div></div><div><ul class="post-copyright"><li class="post-copyright-author"><strong>本文作者： </strong>黑果小兵</li><li class="post-copyright-link"><strong>本文链接：</strong> <a href="https://blog.daliansky.net/macOS-10.13-installation-of-common-problems-and-solutions.html" title="macOS 10.13安装中常见的问题及解决方法">https://blog.daliansky.net/macOS-10.13-installation-of-common-problems-and-solutions.html</a></li><li class="post-copyright-license"><strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="noopener" target="_blank"><i class="fa fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！</li></ul></div><footer class="post-footer"><div class="post-tags"><a href="/tags/安装/" rel="tag"><i class="fa fa-tag"></i> 安装</a> <a href="/tags/常见问题/" rel="tag"><i class="fa fa-tag"></i> 常见问题</a> <a href="/tags/10-13/" rel="tag"><i class="fa fa-tag"></i> 10.13</a> <a href="/tags/High-Sierra/" rel="tag"><i class="fa fa-tag"></i> High Sierra</a> <a href="/tags/EDID/" rel="tag"><i class="fa fa-tag"></i> EDID</a> <a href="/tags/屏蔽独显/" rel="tag"><i class="fa fa-tag"></i> 屏蔽独显</a> <a href="/tags/花屏/" rel="tag"><i class="fa fa-tag"></i> 花屏</a> <a href="/tags/黑屏/" rel="tag"><i class="fa fa-tag"></i> 黑屏</a></div><div class="post-nav"><div class="post-nav-next post-nav-item"><a href="/macOS-High-Sierra-10.13-official-version-and-Clover-4221-original-image.html" rel="next" title="【黑果小兵】macOS High Sierra 10.13正式版 with Clover 4221原版镜像"><i class="fa fa-chevron-left"></i> 【黑果小兵】macOS High Sierra 10.13正式版 with Clover 4221原版镜像</a></div><span class="post-nav-divider"></span><div class="post-nav-prev post-nav-item"><a href="/Guide-High-Sierra-prohibits-APFS-conversion-when-installing-or-upgrading.html" rel="prev" title="High Sierra全新安装或者升级时禁止进行APFS转换">High Sierra全新安装或者升级时禁止进行APFS转换 <i class="fa fa-chevron-right"></i></a></div></div></footer></div></article></div></div><div id="gitalk-container"></div></div><div class="sidebar-toggle"><div class="sidebar-toggle-line-wrap"><span class="sidebar-toggle-line sidebar-toggle-line-first"></span> <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span> <span class="sidebar-toggle-line sidebar-toggle-line-last"></span></div></div><aside id="sidebar" class="sidebar"><div id="sidebar-dimmer"></div><div class="sidebar-inner"><ul class="sidebar-nav motion-element"><li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">文章目录</li><li class="sidebar-nav-overview" data-target="site-overview-wrap">站点概览</li></ul><div class="site-overview-wrap sidebar-panel"><div class="site-overview"><div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person"><a href="/"><img class="site-author-image" itemprop="image" src="/images/avatar.png" alt="黑果小兵"></a><p class="site-author-name" itemprop="name">黑果小兵</p><p class="site-description motion-element" itemprop="description">黑果小兵</p></div><nav class="site-state motion-element"><div class="site-state-item site-state-posts"><a href="/archives/"><span class="site-state-item-count">117</span> <span class="site-state-item-name">日志</span></a></div><div class="site-state-item site-state-categories"><a href="/categories/index.html"><span class="site-state-item-count">26</span> <span class="site-state-item-name">分类</span></a></div><div class="site-state-item site-state-tags"><a href="/tags/index.html"><span class="site-state-item-count">264</span> <span class="site-state-item-name">标签</span></a></div></nav><div class="feed-link motion-element"><a href="/atom.xml" rel="alternate"><i class="fa fa-rss"></i> RSS</a></div><div class="links-of-author motion-element"><span class="links-of-author-item"><a href="https://github.com/daliansky" title="GitHub &rarr; https://github.com/daliansky" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i></a> </span><span class="links-of-author-item"><a href="http://www.jianshu.com/u/df9143008845" title="简书 &rarr; http://www.jianshu.com/u/df9143008845" rel="noopener" target="_blank"><i class="fa fa-fw fa-heartbeat"></i></a> </span><span class="links-of-author-item"><a href="http://shang.qq.com/wpa/qunwpa?idkey=db511a29e856f37cbb871108ffa77a6e79dde47e491b8f2c8d8fe4d3c310de91" title="QQ &rarr; http://shang.qq.com/wpa/qunwpa?idkey=db511a29e856f37cbb871108ffa77a6e79dde47e491b8f2c8d8fe4d3c310de91" rel="noopener" target="_blank"><i class="fa fa-fw fa-qq"></i></a></span></div><div class="links-of-blogroll motion-element links-of-blogroll-block"><div class="links-of-blogroll-title"><i class="fa fa-fw fa-link"></i> Links</div><ul class="links-of-blogroll-list"><li class="links-of-blogroll-item"><a href="https://blog.tlhub.cn" title="https://blog.tlhub.cn" rel="noopener" target="_blank">Athlonreg</a></li><li class="links-of-blogroll-item"><a href="http://www.sqlsec.com" title="http://www.sqlsec.com" rel="noopener" target="_blank">国光</a></li></ul></div></div></div><div class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active"><div class="post-toc"><div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#安装提示安装macos-应用程序副本已损坏不能用来安装macos的解决方法"><span class="nav-number">1.</span> <span class="nav-text">安装提示安装macOS 应用程序副本已损坏，不能用来安装macOS的解决方法</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#去掉lilu的输出信息还原1013-内核崩溃kernel-pance的真相"><span class="nav-number">2.</span> <span class="nav-text">去掉Lilu的输出信息,还原10.13 内核崩溃(kernel pance)的真相</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#解决方法1"><span class="nav-number">2.1.</span> <span class="nav-text">解决方法1:</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#解决方法2"><span class="nav-number">2.2.</span> <span class="nav-text">解决方法2:</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#8750h核显黑屏的临时解决方法"><span class="nav-number">3.</span> <span class="nav-text">8750h核显黑屏的临时解决方法：</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#10130123-改变usb端口限制补丁"><span class="nav-number">4.</span> <span class="nav-text">10.13.0/1/2/3 改变USB端口限制补丁</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#101345-关闭usb端口限制补丁"><span class="nav-number">5.</span> <span class="nav-text">10.13.4/5 关闭USB端口限制补丁</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#10136-改变usb端口限制补丁"><span class="nav-number">6.</span> <span class="nav-text">10.13.6 改变USB端口限制补丁</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#macos升级后应该先插入啥"><span class="nav-number">7.</span> <span class="nav-text">macOS升级后应该先插入啥？</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#安装过程中出现错误信息goodwinhwpenabler11"><span class="nav-number">8.</span> <span class="nav-text">安装过程中出现错误信息good.win.HWPEnabler（1.1）</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#block-injected-kexts-禁用无效的-未知的驱动程序"><span class="nav-number">8.1.</span> <span class="nav-text">Block injected kexts 禁用无效的、未知的驱动程序</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#误食了偏方进不了系统怎么办"><span class="nav-number">9.</span> <span class="nav-text">误食了偏方进不了系统怎么办？</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#恢复方法"><span class="nav-number">9.1.</span> <span class="nav-text">恢复方法：</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#挂载efi分区"><span class="nav-number">9.2.</span> <span class="nav-text">挂载EFI分区</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#安装1013时卡在service-only-ran-for-0-seconds-pushing-respawn-out-by-10-second"><span class="nav-number">10.</span> <span class="nav-text">安装10.13时卡在Service only ran for 0 seconds. Pushing respawn out by 10 second</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#使用方法"><span class="nav-number">10.1.</span> <span class="nav-text">使用方法：</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#下载链接httpspanbaiducoms1skrciyl"><span class="nav-number">10.2.</span> <span class="nav-text">下载链接：https://pan.baidu.com/s/1skRcIyL</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#解决安装时提示-osinstallmpkg似乎已缺失或已损坏-的问题"><span class="nav-number">11.</span> <span class="nav-text">解决安装时提示 OSInstall.mpkg似乎已缺失或已损坏 的问题</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#解决方法"><span class="nav-number">11.1.</span> <span class="nav-text">解决方法：</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#删除-eficloverdrivers64uefiemuvariableuefi-64efi-和-efi-分区根目录下的-nvramplist"><span class="nav-number">11.1.1.</span> <span class="nav-text">删除 /EFI/CLOVER/drivers64UEFI/EmuVariableUefi-64.efi 和 /EFI/ 分区根目录下的 nvram.plist</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#修改smbios使用clover-configurator将机型设置为2012年及以后机型"><span class="nav-number">11.1.2.</span> <span class="nav-text">修改SMBIOS,使用Clover Configurator将机型设置为2012年及以后机型</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#解决1013-nvidia安装web-driver黑屏问题"><span class="nav-number">12.</span> <span class="nav-text">解决10.13 NVIDIA安装Web Driver黑屏问题</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#解决方法-2"><span class="nav-number">12.1.</span> <span class="nav-text">解决方法：</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#解决1013下某些机械硬盘无法读取的问题"><span class="nav-number">13.</span> <span class="nav-text">解决10.13下某些机械硬盘无法读取的问题</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#解决1013high-sierra1012sierra-clover开机出现8个苹果"><span class="nav-number">14.</span> <span class="nav-text">解决10.13(High Sierra)/10.12(Sierra) Clover开机出现8个苹果</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#不使用任何程序教你提取显示器的edid解决笔记本显示器内屏黑屏花屏的问题"><span class="nav-number">15.</span> <span class="nav-text">不使用任何程序教你提取显示器的EDID，解决笔记本显示器内屏黑屏/花屏的问题</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#最简单的命令是"><span class="nav-number">15.1.</span> <span class="nav-text">最简单的命令是：</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#显示信息如下"><span class="nav-number">15.2.</span> <span class="nav-text">显示信息如下：</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#接着输入下面的两条命令"><span class="nav-number">15.3.</span> <span class="nav-text">接着输入下面的两条命令：</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#选择-v时出现attempting-system-restartmach-reboot的解决方法"><span class="nav-number">16.</span> <span class="nav-text">选择-v时出现Attempting system restart...MACH Reboot的解决方法</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#解决方法-3"><span class="nav-number">16.1.</span> <span class="nav-text">解决方法</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#关于开机出现welcome-to-clover-xxxx-user-settings卡住不动的解决方法"><span class="nav-number">17.</span> <span class="nav-text">关于开机出现Welcome to Clover xxxx user settings卡住不动的解决方法</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#解决方法-4"><span class="nav-number">17.1.</span> <span class="nav-text">解决方法</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#抹盘时提示mediakit报告设备上的空间不足以执行请求的操作的原因及解决方法"><span class="nav-number">18.</span> <span class="nav-text">抹盘时提示&quot;MediaKit报告设备上的空间不足以执行请求的操作&quot;的原因及解决方法</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#原因"><span class="nav-number">18.1.</span> <span class="nav-text">原因</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#解决方法-5"><span class="nav-number">18.2.</span> <span class="nav-text">解决方法</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#macos下使用brew安装android-platform-tools工具连接安卓设备"><span class="nav-number">19.</span> <span class="nav-text">macOS下使用brew安装android-platform-tools工具连接安卓设备</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#什么是-adb"><span class="nav-number">19.1.</span> <span class="nav-text">什么是 ADB?</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#关于本机cpu处理器显示未知的解决方法"><span class="nav-number">20.</span> <span class="nav-text">关于本机CPU处理器显示未知的解决方法：</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#nvidia-webdriver驱动小版本更新后使用之前版本的命令"><span class="nav-number">21.</span> <span class="nav-text">Nvidia WebDriver驱动小版本更新后使用之前版本的命令</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#方法"><span class="nav-number">21.1.</span> <span class="nav-text">方法：</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#重建缓存的命令"><span class="nav-number">22.</span> <span class="nav-text">重建缓存的命令</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#感谢名单"><span class="nav-number">23.</span> <span class="nav-text">感谢名单</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#参考及引用"><span class="nav-number">24.</span> <span class="nav-text">参考及引用：</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#关于打赏"><span class="nav-number">25.</span> <span class="nav-text">关于打赏</span></a></li></ol></div></div></div></div></aside></div></main><footer id="footer" class="footer"><div class="footer-inner"><div class="copyright"><a href="http://www.beian.miit.gov.cn" rel="noopener" target="_blank">辽ICP备15000696号-3 </a>&copy; 2016 – <span itemprop="copyrightYear">2021</span> <span class="with-love" id="animate"><i class="fa fa-apple"></i> </span><span class="author" itemprop="copyrightHolder">黑果小兵</span> <span class="post-meta-divider">|</span> <span class="post-meta-item-icon"><i class="fa fa-area-chart"></i> </span><span title="站点总字数">795k</span> <span class="post-meta-divider">|</span> <span class="post-meta-item-icon"><i class="fa fa-coffee"></i> </span><span title="站点阅读时长">24:05</span></div><div class="busuanzi-count"><script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><span class="site-uv" title="总访客量"><i class="fa fa-user"></i> <span class="busuanzi-value" id="busuanzi_value_site_uv"></span> </span><span class="site-pv" title="总访问量"><i class="fa fa-eye"></i> <span class="busuanzi-value" id="busuanzi_value_site_pv"></span></span></div></div></footer><div class="back-to-top"><i class="fa fa-arrow-up"></i> <span id="scrollpercent"><span>0</span>%</span></div></div><script>"[object Function]"!==Object.prototype.toString.call(window.Promise)&&(window.Promise=null)</script><script src="/lib/jquery/index.js?v=2.1.3"></script><script src="/lib/velocity/velocity.min.js?v=1.2.1"></script><script src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.2.5/dist/jquery.fancybox.min.js"></script><script src="//cdn.jsdelivr.net/gh/theme-next/theme-next-reading-progress@1.1/reading_progress.min.js"></script><script src="/js/src/utils.js?v=6.6.0"></script><script src="/js/src/motion.js?v=6.6.0"></script><script src="/js/src/scrollspy.js?v=6.6.0"></script><script src="/js/src/post-details.js?v=6.6.0"></script><script src="/js/src/bootstrap.js?v=6.6.0"></script><script src="//cdn.jsdelivr.net/npm/gitalk@1.7.2/dist/gitalk.min.js"></script><link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk@1.7.2/dist/gitalk.css"><script src="//cdn.jsdelivr.net/npm/js-md5@0.7.3/src/md5.min.js"></script><script>var gitalk=new Gitalk({clientID:"0da3e792a21a77938da6",clientSecret:"4d2869563000629ee6dbed48fbbf878aea151cb6",repo:"daliansky.github.io",owner:"daliansky",admin:["daliansky"],id:md5(location.pathname),distractionFreeMode:"true",proxy:"https://gitalk.daliansky.workers.dev/?https://github.com/login/oauth/access_token"});gitalk.render("gitalk-container")</script><script>// Popup Window;
    var isfetched = false;
    var isXml = true;
    // Search DB path;
    var search_path = "search.xml";
    if (search_path.length === 0) {
      search_path = "search.xml";
    } else if (/json$/i.test(search_path)) {
      isXml = false;
    }
    var path = "/" + search_path;
    // monitor main search box;

    var onPopupClose = function (e) {
      $('.popup').hide();
      $('#local-search-input').val('');
      $('.search-result-list').remove();
      $('#no-result').remove();
      $(".local-search-pop-overlay").remove();
      $('body').css('overflow', '');
    }

    function proceedsearch() {
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay"></div>')
        .css('overflow', 'hidden');
      $('.search-popup-overlay').click(onPopupClose);
      $('.popup').toggle();
      var $localSearchInput = $('#local-search-input');
      $localSearchInput.attr("autocapitalize", "none");
      $localSearchInput.attr("autocorrect", "off");
      $localSearchInput.focus();
    }

    // search function;
    var searchFunc = function(path, search_id, content_id) {
      'use strict';

      // start loading animation
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay">' +
          '<div id="search-loading-icon">' +
          '<i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>' +
          '</div>' +
          '</div>')
        .css('overflow', 'hidden');
      $("#search-loading-icon").css('margin', '20% auto 0 auto').css('text-align', 'center');

      

      $.ajax({
        url: path,
        dataType: isXml ? "xml" : "json",
        async: true,
        success: function(res) {
          // get the contents from search data
          isfetched = true;
          $('.popup').detach().appendTo('.header-inner');
          var datas = isXml ? $("entry", res).map(function() {
            return {
              title: $("title", this).text(),
              content: $("content",this).text(),
              url: $("url" , this).text()
            };
          }).get() : res;
          var input = document.getElementById(search_id);
          var resultContent = document.getElementById(content_id);
          var inputEventFunction = function() {
            var searchText = input.value.trim().toLowerCase();
            var keywords = searchText.split(/[\s\-]+/);
            if (keywords.length > 1) {
              keywords.push(searchText);
            }
            var resultItems = [];
            if (searchText.length > 0) {
              // perform local searching
              datas.forEach(function(data) {
                var isMatch = false;
                var hitCount = 0;
                var searchTextCount = 0;
                var title = data.title.trim();
                var titleInLowerCase = title.toLowerCase();
                var content = data.content.trim().replace(/<[^>]+>/g,"");
                
                var contentInLowerCase = content.toLowerCase();
                var articleUrl = decodeURIComponent(data.url);
                var indexOfTitle = [];
                var indexOfContent = [];
                // only match articles with not empty titles
                if(title != '') {
                  keywords.forEach(function(keyword) {
                    function getIndexByWord(word, text, caseSensitive) {
                      var wordLen = word.length;
                      if (wordLen === 0) {
                        return [];
                      }
                      var startPosition = 0, position = [], index = [];
                      if (!caseSensitive) {
                        text = text.toLowerCase();
                        word = word.toLowerCase();
                      }
                      while ((position = text.indexOf(word, startPosition)) > -1) {
                        index.push({position: position, word: word});
                        startPosition = position + wordLen;
                      }
                      return index;
                    }

                    indexOfTitle = indexOfTitle.concat(getIndexByWord(keyword, titleInLowerCase, false));
                    indexOfContent = indexOfContent.concat(getIndexByWord(keyword, contentInLowerCase, false));
                  });
                  if (indexOfTitle.length > 0 || indexOfContent.length > 0) {
                    isMatch = true;
                    hitCount = indexOfTitle.length + indexOfContent.length;
                  }
                }

                // show search results

                if (isMatch) {
                  // sort index by position of keyword

                  [indexOfTitle, indexOfContent].forEach(function (index) {
                    index.sort(function (itemLeft, itemRight) {
                      if (itemRight.position !== itemLeft.position) {
                        return itemRight.position - itemLeft.position;
                      } else {
                        return itemLeft.word.length - itemRight.word.length;
                      }
                    });
                  });

                  // merge hits into slices

                  function mergeIntoSlice(text, start, end, index) {
                    var item = index[index.length - 1];
                    var position = item.position;
                    var word = item.word;
                    var hits = [];
                    var searchTextCountInSlice = 0;
                    while (position + word.length <= end && index.length != 0) {
                      if (word === searchText) {
                        searchTextCountInSlice++;
                      }
                      hits.push({position: position, length: word.length});
                      var wordEnd = position + word.length;

                      // move to next position of hit

                      index.pop();
                      while (index.length != 0) {
                        item = index[index.length - 1];
                        position = item.position;
                        word = item.word;
                        if (wordEnd > position) {
                          index.pop();
                        } else {
                          break;
                        }
                      }
                    }
                    searchTextCount += searchTextCountInSlice;
                    return {
                      hits: hits,
                      start: start,
                      end: end,
                      searchTextCount: searchTextCountInSlice
                    };
                  }

                  var slicesOfTitle = [];
                  if (indexOfTitle.length != 0) {
                    slicesOfTitle.push(mergeIntoSlice(title, 0, title.length, indexOfTitle));
                  }

                  var slicesOfContent = [];
                  while (indexOfContent.length != 0) {
                    var item = indexOfContent[indexOfContent.length - 1];
                    var position = item.position;
                    var word = item.word;
                    // cut out 100 characters
                    var start = position - 20;
                    var end = position + 80;
                    if(start < 0){
                      start = 0;
                    }
                    if (end < position + word.length) {
                      end = position + word.length;
                    }
                    if(end > content.length){
                      end = content.length;
                    }
                    slicesOfContent.push(mergeIntoSlice(content, start, end, indexOfContent));
                  }

                  // sort slices in content by search text's count and hits' count

                  slicesOfContent.sort(function (sliceLeft, sliceRight) {
                    if (sliceLeft.searchTextCount !== sliceRight.searchTextCount) {
                      return sliceRight.searchTextCount - sliceLeft.searchTextCount;
                    } else if (sliceLeft.hits.length !== sliceRight.hits.length) {
                      return sliceRight.hits.length - sliceLeft.hits.length;
                    } else {
                      return sliceLeft.start - sliceRight.start;
                    }
                  });

                  // select top N slices in content

                  var upperBound = parseInt('1');
                  if (upperBound >= 0) {
                    slicesOfContent = slicesOfContent.slice(0, upperBound);
                  }

                  // highlight title and content

                  function highlightKeyword(text, slice) {
                    var result = '';
                    var prevEnd = slice.start;
                    slice.hits.forEach(function (hit) {
                      result += text.substring(prevEnd, hit.position);
                      var end = hit.position + hit.length;
                      result += '<b class="search-keyword">' + text.substring(hit.position, end) + '</b>';
                      prevEnd = end;
                    });
                    result += text.substring(prevEnd, slice.end);
                    return result;
                  }

                  var resultItem = '';

                  if (slicesOfTitle.length != 0) {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + highlightKeyword(title, slicesOfTitle[0]) + "</a>";
                  } else {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + title + "</a>";
                  }

                  slicesOfContent.forEach(function (slice) {
                    resultItem += "<a href='" + articleUrl + "'>" +
                      "<p class=\"search-result\">" + highlightKeyword(content, slice) +
                      "...</p>" + "</a>";
                  });

                  resultItem += "</li>";
                  resultItems.push({
                    item: resultItem,
                    searchTextCount: searchTextCount,
                    hitCount: hitCount,
                    id: resultItems.length
                  });
                }
              })
            };
            if (keywords.length === 1 && keywords[0] === "") {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-search fa-5x" /></div>'
            } else if (resultItems.length === 0) {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-frown-o fa-5x" /></div>'
            } else {
              resultItems.sort(function (resultLeft, resultRight) {
                if (resultLeft.searchTextCount !== resultRight.searchTextCount) {
                  return resultRight.searchTextCount - resultLeft.searchTextCount;
                } else if (resultLeft.hitCount !== resultRight.hitCount) {
                  return resultRight.hitCount - resultLeft.hitCount;
                } else {
                  return resultRight.id - resultLeft.id;
                }
              });
              var searchResultList = '<ul class=\"search-result-list\">';
              resultItems.forEach(function (result) {
                searchResultList += result.item;
              })
              searchResultList += "</ul>";
              resultContent.innerHTML = searchResultList;
            }
          }

          if ('auto' === 'auto') {
            input.addEventListener('input', inputEventFunction);
          } else {
            $('.search-icon').click(inputEventFunction);
            input.addEventListener('keypress', function (event) {
              if (event.keyCode === 13) {
                inputEventFunction();
              }
            });
          }

          // remove loading animation
          $(".local-search-pop-overlay").remove();
          $('body').css('overflow', '');

          proceedsearch();
        }
      });
    }

    // handle and trigger popup window;
    $('.popup-trigger').click(function(e) {
      e.stopPropagation();
      if (isfetched === false) {
        searchFunc(path, 'local-search-input', 'local-search-result');
      } else {
        proceedsearch();
      };
    });

    $('.popup-btn-close').click(onPopupClose);
    $('.popup').click(function(e){
      e.stopPropagation();
    });
    $(document).on('keyup', function (event) {
      var shouldDismissSearchPopup = event.which === 27 &&
        $('.search-popup').is(':visible');
      if (shouldDismissSearchPopup) {
        onPopupClose();
      }
    });</script><script src="/js/src/js.cookie.js?v=6.6.0"></script><script src="/js/src/scroll-cookie.js?v=6.6.0"></script><script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({pluginRootPath:"live2dw/",pluginJsPath:"lib/",pluginModelPath:"assets/",model:{scale:1.2,hHeadPos:.5,vHeadPos:.618,jsonPath:"/live2dw/assets/tororo.model.json"},display:{superSample:2,width:150,height:300,position:"right",hOffset:0,vOffset:-20},mobile:{show:!1,scale:.5},react:{opacityDefault:.7,opacityOnHover:.2},log:!1,tagMode:!1})</script></body></html>